<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            outline: 1px red solid;
        }
    </style>
</head>
<body>
        <div></div>
         <button>按钮1</button>
         <button>按钮2</button>
         <button>按钮3</button>
         <button>按钮4</button>
         <button>按钮5</button>
    
</body>
</html>
<script src="./lib/jquery.min.js"></script>
<script>
    $(()=>{

        /* $("div").click(()=>{
            console.log("click");
        })
        $("div").mouseenter(()=>{
            console.log("mouseenter");
        })
 */

     /*  $("div").click(()=>{
        console.log("click");
      }).mouseenter(()=>{
        console.log("mouseenter");
      }) */

      //绑定键盘事件
     /*  $(document).keydown((e)=>{
          console.log(e.keyCode)
      }); */

      $("button").click(function(){
         alert($(this).html());
      })

    });

</script>